Skip to content

Commit c8dc365

Browse files
Update README.md
1 parent 724f77a commit c8dc365

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,13 @@ To ensure the correctness, run `make verify-all`
110110
instructions.
111111

112112
### Using Binary
113-
> ir2vec -\<mode\> -vocab \<seedEmbedding-file-path\> -o \<output-file\> -level \<p|f\> -class \<class-number\> -funcName=\<function-name\> \<input-ll-file\>
113+
> ir2vec -\<mode\> -o \<output-file\> -level \<p|f\> -class \<class-number\> -funcName=\<function-name\> \<input-ll-file\>
114114
115115
#### Command-Line options
116116

117117
- `mode` - can be one of `sym`/`fa`
118118
- `sym` denotes Symbolic representation
119119
- `fa` denotes Flow-Aware representation
120-
- `vocab` - the path to the seed embeddings file
121120
- `o` - file in which the embeddings are to be appended; (Note : If file doesn’t exist, new file would be created, else embeddings would be appended)
122121
- `level` - can be one of chars `p`/`f`.
123122
- `p` denotes `program level` encoding
@@ -139,16 +138,16 @@ Please use `--help` for further details.
139138
140139
#### Flow-Aware Embeddings
141140
For all functions
142-
* `` ir2vec -fa -vocab vocabulary/seedEmbeddingVocab.txt -o <output_file> -level <p|f> -class <class-number> <input_ll_file>``
141+
* `` ir2vec -fa -o <output_file> -level <p|f> -class <class-number> <input_ll_file>``
143142

144143
For a specific function
145-
* `` ir2vec -fa -vocab vocabulary/seedEmbeddingVocab.txt -o <output_file> -level f -class <class-number> -funcName=\<function-name\><input_ll_file>``
144+
* `` ir2vec -fa -o <output_file> -level f -class <class-number> -funcName=\<function-name\><input_ll_file>``
146145

147146
#### Symbolic Embeddings
148147
For all functions
149-
* `` ir2vec -sym -vocab vocabulary/seedEmbeddingVocab.txt -o <output_file> -level <p|f> -class <class-number> <input_ll_file>``
148+
* `` ir2vec -sym -o <output_file> -level <p|f> -class <class-number> <input_ll_file>``
150149
For a specific function
151-
* `` ir2vec -sym -vocab vocabulary/seedEmbeddingVocab.txt -o <output_file> -level f -class <class-number> -funcName=\<function-name\> <input_ll_file>``
150+
* `` ir2vec -sym -o <output_file> -level f -class <class-number> -funcName=\<function-name\> <input_ll_file>``
152151

153152
## Using Libraries
154153
The libraries can be installed by passing the installation location to the `CMAKE_INSTALL_PREFIX` flag during `cmake` followed by `make install`.
@@ -176,8 +175,7 @@ The following example snippet shows how to query the exposed vector representati
176175

177176
// Creating object to generate FlowAware representation
178177
auto ir2vec =
179-
IR2Vec::Embeddings(<LLVM Module>, IR2Vec::IR2VecMode::FlowAware,
180-
"./vocabulary/seedEmbeddingVocab.txt");
178+
IR2Vec::Embeddings(<LLVM Module>, IR2Vec::IR2VecMode::FlowAware);
181179

182180
// Getting Instruction vectors corresponding to the instructions in <LLVM Module>
183181
auto instVecMap = ir2vec.getInstVecMap();

0 commit comments

Comments
 (0)