Home
last modified time | relevance | path

Searched refs:corpus (Results 1 - 25 of 42) sorted by relevance

12

/third_party/libabigail/tests/
H A Dtest-symtab.cc10 /// This program tests symtab invariants through abg-corpus.
17 #include "abg-corpus.h"
107 const corpus& corpus = *corpus_ptr; in assert_symbol_count() local
113 CHECK(corpus.get_sorted_fun_symbols().size() == function_symbols); in assert_symbol_count()
114 CHECK(corpus.get_fun_symbol_map().size() == function_symbols); in assert_symbol_count()
119 CHECK(corpus.get_sorted_var_symbols().size() == variable_symbols); in assert_symbol_count()
120 CHECK(corpus.get_var_symbol_map().size() == variable_symbols); in assert_symbol_count()
125 CHECK(corpus.get_sorted_undefined_fun_symbols().size() in assert_symbol_count()
127 CHECK(corpus in assert_symbol_count()
158 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 0); global() variable
170 const corpus_sptr& corpus = assert_symbol_count(binary, 0, 1); global() variable
182 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 1); global() variable
192 const corpus_sptr corpus = assert_symbol_count(binary, 0, 0, 1, 0); global() variable
198 const corpus_sptr corpus = assert_symbol_count(binary, 0, 0, 0, 1); global() variable
204 const corpus_sptr corpus = assert_symbol_count(binary, 0, 0, 1, 1); global() variable
216 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 1); global() variable
228 const corpus_sptr& corpus = global() variable
255 const corpus_sptr& corpus = global() variable
268 const corpus_sptr& corpus = global() variable
281 const corpus_sptr& corpus = assert_symbol_count(binary, 5, 5); global() variable
305 const corpus_sptr& corpus = assert_symbol_count(binary, 5, 5); global() variable
350 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 0); global() variable
362 const corpus_sptr& corpus = assert_symbol_count(binary, 1, 0); global() variable
374 const corpus_sptr& corpus = assert_symbol_count(binary, 0, 1); global() variable
386 const corpus_sptr& corpus = assert_symbol_count(binary, 0, 1); global() variable
398 const corpus_sptr& corpus = assert_symbol_count(binary, 2, 2); global() variable
419 const corpus_sptr& corpus = assert_symbol_count(binary, 2, 2); global() variable
[all...]
/third_party/rust/crates/memchr/src/tests/memchr/
H A Dtestdata.rs7 assert!(!statict.corpus.contains("%"), "% is not allowed in corpora"); in memchr_tests()
8 assert!(!statict.corpus.contains("#"), "# is not allowed in corpora"); in memchr_tests()
13 corpus: statict.corpus.to_string(), in memchr_tests()
28 /// increasing the corpus size). Finally, we cover different alignment cases
32 MemchrTestStatic { corpus: "a", needles: &[b'a'], positions: &[0] },
33 MemchrTestStatic { corpus: "aa", needles: &[b'a'], positions: &[0, 1] },
35 corpus: "aaa",
39 MemchrTestStatic { corpus: "", needles: &[b'a'], positions: &[] },
40 MemchrTestStatic { corpus
310 fn corpus(&self, align: usize) -> &str { corpus() functions
[all...]
H A Dmemchr.rs95 fn qc_memchr1_matches_naive(n1: u8, corpus: Vec<u8>) -> bool { in qc_memchr1_matches_naive()
96 memchr(n1, &corpus) == naive::memchr(n1, &corpus) in qc_memchr1_matches_naive()
101 fn qc_memchr2_matches_naive(n1: u8, n2: u8, corpus: Vec<u8>) -> bool { in qc_memchr2_matches_naive()
102 memchr2(n1, n2, &corpus) == naive::memchr2(n1, n2, &corpus) in qc_memchr2_matches_naive()
109 corpus: Vec<u8> in qc_memchr3_matches_naive()
111 memchr3(n1, n2, n3, &corpus) == naive::memchr3(n1, n2, n3, &corpus) in qc_memchr3_matches_naive()
116 fn qc_memrchr1_matches_naive(n1: u8, corpus
[all...]
H A Diter.rs29 test.iter_one(true, |n1, corpus| Memchr::new(n1, corpus).rev()); in memrchr1_iter()
36 test.iter_two(true, |n1, n2, corpus| { in memrchr2_iter()
37 Memchr2::new(n1, n2, corpus).rev() in memrchr2_iter()
45 test.iter_three(true, |n1, n2, n3, corpus| { in memrchr3_iter()
46 Memchr3::new(n1, n2, n3, corpus).rev() in memrchr3_iter()
/third_party/libabigail/src/
H A Dabg-corpus.cc22 #include "abg-corpus.h"
33 #include "abg-corpus-priv.h"
49 /// Constructor of @ref corpus::exported_decls_builder.
75 corpus::exported_decls_builder
95 /// This vector is shared with with the @ref corpus. It's where the
99 const corpus::functions&
100 corpus::exported_decls_builder::exported_functions() const in exported_functions()
104 /// This vector is shared with with the @ref corpus. It's where the
108 corpus::functions&
109 corpus
599 corpus::corpus(const ir::environment& env, const string& path) corpus() function in abigail::ir::corpus
[all...]
H A Dabg-fe-iface.cc16 #include "abg-corpus.h"
32 ir::corpus_sptr corpus; member
65 /// corpus that is going to be built by this Front End.
79 /// @param corpus_path the path to the file for which a new corpus is
105 /// Getter of the path to the file which an ABI corpus is to be
108 /// @return the path to the file which an ABI corpus is to be created
114 /// Setter of the path to the file which an ABI corpus is to be
117 /// @param p the new path to the file which an ABI corpus is to be
175 /// (the ABI corpus) from the input file.
177 /// During the construction of the ABI corpus, AB
206 fe_iface::corpus() corpus() function in abigail::fe_iface
220 fe_iface::corpus() const corpus() function in abigail::fe_iface
[all...]
H A Dabg-elf-reader.cc857 /// information so the resulting ABI corpus won't have any type
866 /// @return the resulting ABI corpus.
872 corpus::origin origin = corpus()->get_origin(); in read_corpus()
873 origin |= corpus::ELF_ORIGIN; in read_corpus()
875 origin |= corpus::LINUX_KERNEL_BINARY_ORIGIN; in read_corpus()
876 corpus()->set_origin(origin); in read_corpus()
879 corpus()->set_soname(dt_soname()); in read_corpus()
880 corpus()->set_needed(dt_needed()); in read_corpus()
881 corpus() in read_corpus()
[all...]
H A Dabg-ctf-reader.cc11 /// de-serialize an instance of @ref abigail::corpus from a file in
35 #include "abg-corpus.h"
125 /// the ELF file and builds an ABI corpus out of it.
151 corpus::exported_decls_builder*
153 {return corpus()->get_exported_decls_builder().get();} in exported_decls_builder()
326 // In corpus group we assume vmlinux as first file to in find_ctfa_file()
348 /// install it the current libabigail corpus associated to the
355 // Read the ELF-specific parts of the corpus. in slurp_elf_info()
358 corpus_sptr corp = corpus(); in slurp_elf_info()
359 if ((corp->get_origin() & corpus in slurp_elf_info()
[all...]
H A Dabg-corpus-priv.h8 /// The private data and functions of the @ref abigail::ir::corpus type.
38 // <corpus::exported_decls_builder>
48 /// corpus::exported_decls_builder type.
49 class corpus::exported_decls_builder::priv
51 friend class corpus::exported_decls_builder;
52 friend class corpus;
60 // would think that in the corpus, there must only one function for
661 }; // end struct corpus::exported_decls_builder::priv
664 /// The private data of the @ref corpus type.
665 struct corpus
[all...]
/third_party/libabigail/include/
H A Dabg-corpus.h21 /// bundled together as a corpus. A corpus is thus the Application
24 class corpus class
41 /// This abstracts where the corpus comes from. That is, either it
55 corpus();
64 corpus(const ir::environment&, const string& path= "");
66 virtual ~corpus();
159 operator==(const corpus&) const;
276 };// end class corpus.
278 corpus
[all...]
H A Dabg-fwd.h64 // Forward declarations for corpus.
66 class corpus;
67 typedef shared_ptr<corpus> corpus_sptr;
101 /// Convenience typedef for a weak pointer to a @ref corpus.
102 typedef weak_ptr<corpus> corpus_wptr;
1108 lookup_basic_type(const type_decl&, const corpus&);
1111 lookup_basic_type(const string&, const corpus&);
1114 lookup_basic_type(const interned_string&, const corpus&);
1117 lookup_basic_type_per_location(const interned_string&, const corpus&);
1120 lookup_basic_type_per_location(const string&, const corpus
[all...]
H A Dabg-writer.h107 write_corpus_to_archive(const corpus& corp,
112 write_corpus_to_archive(const corpus& corp,
121 const corpus_sptr& corpus,
/third_party/rust/crates/memchr/bench/src/memchr/
H A Dmod.rs30 memchr1_count(search.byte1.byte, search.corpus), in all()
38 memchr1_count(search.byte1.byte, search.corpus), in all()
46 memchr1_count(search.byte1.byte, search.corpus), in all()
54 memchr1_count(search.byte1.byte, search.corpus), in all()
63 imp::memchr1_libc_count(search.byte1.byte, search.corpus), in all()
71 imp::memchr1_libc_count(search.byte1.byte, search.corpus), in all()
79 imp::memchr1_libc_count(search.byte1.byte, search.corpus), in all()
87 imp::memchr1_libc_count(search.byte1.byte, search.corpus), in all()
100 fallback1_count(search.byte1.byte, search.corpus), in all()
113 fallback1_count(search.byte1.byte, search.corpus), in all()
[all...]
H A Dinputs.rs5 pub corpus: &'static [u8],
21 corpus: crate::data::SHERLOCK_HUGE,
47 corpus: crate::data::SHERLOCK_SMALL,
73 corpus: crate::data::SHERLOCK_TINY,
95 corpus: &[],
120 self.never(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in never1()
124 self.never(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in never2()
128 self.never(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in never3()
142 self.rare(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in rare1()
146 self.rare(2).and_then(|bytes| Search2::new(self.corpus, byte in rare2()
[all...]
/third_party/rust/crates/memchr/bench/src/memmem/
H A Dinputs.rs5 /// A name describing the corpus, used to identify it in benchmarks.
8 pub corpus: &'static str,
31 corpus: data::CODE_RUST_LIBRARY,
57 corpus: data::SUBTITLE_EN_HUGE,
102 corpus: data::SUBTITLE_RU_HUGE,
124 corpus: data::SUBTITLE_ZH_HUGE,
144 corpus: data::SUBTITLE_EN_TEENY,
163 corpus: data::SUBTITLE_RU_TEENY,
181 corpus: data::SUBTITLE_ZH_TEENY,
197 corpus
[all...]
H A Dmod.rs13 memr?mem/{impl}/{config}/{corpus}/{needle}
68 corpus
69 A brief name describing the corpus or haystack used in the benchmark. In
81 this corpus means the benchmark is measuring performance on very small
137 $inp.corpus.as_bytes(), in oneshot()
142 $find($inp.corpus, $q.needle) in oneshot()
207 $inp.corpus.as_bytes(), in prebuilt()
211 assert_eq!(expected, find($inp.corpus)); in prebuilt()
274 $inp.corpus.as_bytes(), in oneshot_iter()
278 $find_iter($inp.corpus, in oneshot_iter()
[all...]
/third_party/rust/crates/aho-corasick/bench/src/
H A Dbench.rs27 corpus: &[u8], in define_aho_corasick()
34 let haystack = corpus.to_vec(); in define_aho_corasick()
41 define(c, group_name, &name, corpus, move |b| { in define_aho_corasick()
45 let haystack = corpus.to_vec(); in define_aho_corasick()
52 define(c, group_name, &name, corpus, move |b| { in define_aho_corasick()
57 let haystack = corpus.to_vec(); in define_aho_corasick()
61 define(c, group_name, &name, corpus, move |b| { in define_aho_corasick()
69 let haystack = corpus.to_vec(); in define_aho_corasick()
73 define(c, group_name, &name, corpus, move |b| { in define_aho_corasick()
87 corpus in define_aho_corasick_dfa()
[all...]
H A Dsame.rs5 /// These benchmarks test various workloads on a corpus that corresponds to the
35 let corpus = "z".repeat(10_000); in define_same()
40 corpus.as_bytes(), in define_same()
/third_party/rust/crates/memchr/scripts/
H A Dmake-byte-frequency-table32 p.add_argument('corpus', metavar='FILE', nargs='+')
40 eprint('reading entire corpus into memory')
41 corpus = []
42 for fpath in args.corpus:
43 corpus.append(open(fpath, 'rb').read())
46 for c in corpus:
/third_party/rust/crates/regex/scripts/
H A Dfrequencies.py32 p.add_argument('corpus', metavar='FILE', nargs='+')
40 eprint('reading entire corpus into memory')
41 corpus = []
42 for fpath in args.corpus:
43 corpus.append(open(fpath, 'rb').read())
46 for c in corpus:
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/
H A Drun.js17 const corpus = require('./corpus.js');
35 // Choose 40%-80% of inputs from primary corpus.
76 const v8Corpus = new corpus.Corpus(inputDir, 'v8');
77 const chakraCorpus = new corpus.Corpus(inputDir, 'chakra');
78 const spiderMonkeyCorpus = new corpus.Corpus(inputDir, 'spidermonkey');
79 const jscCorpus = new corpus.Corpus(inputDir, 'WebKit/JSTests');
80 const crashTestsCorpus = new corpus.Corpus(inputDir, 'CrashTests');
117 const inputCorpus = new corpus.Corpus(
142 .option('-c, --mutate_corpus <name>', 'Mutate single files in a corpus
[all...]
H A Dbuild_db.js11 const corpus = require('./corpus.js');
40 const curCorpus = new corpus.Corpus(inputDir, corpusName);
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/test/
H A Dtest_corpus.js15 const corpus = require('../corpus.js');
23 const mjsunit = new corpus.Corpus('test_data', 'mjsunit_softskipped');
28 describe('Loading corpus', () => {
99 const mjsunit = new corpus.Corpus('test_data' , 'mjsunit_softskipped');
/third_party/rust/crates/regex/bench/src/
H A Dmisc.rs109 fn get_text(corpus: &str, suffix: String) -> String { in get_text()
110 let mut corpus = corpus.to_string(); in get_text() variables
111 corpus.push_str(&suffix); in get_text()
112 corpus in get_text()
/third_party/rust/crates/memchr/bench/src/
H A Dbench.rs27 corpus: &[u8], in define()
40 .throughput(Throughput::Bytes(corpus.len() as u64)) in define()

Completed in 12 milliseconds

12