Skip to content

Commit 4197632

Browse files
davis-matthewdbabokin
authored andcommitted
Typographical/Grammar Fixes
1 parent 29a67b2 commit 4197632

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515

1616
===========================================================================
17-
Copyrights and Licenses for Third Party Software Distrubted with
17+
Copyrights and Licenses for Third Party Software Distributed with
1818
Yet Another Random Program Generator
1919
===========================================================================
2020

scripts/blame_opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def blame(fail_dir, valid_res, fail_target, out_dir, lock, num, inplace):
190190
blame_str += i
191191
blame_phase_num = execute_blame_phase(valid_res, fail_target, blame_str, num, phase_num)
192192
if fail_target.specs.name == "dpcpp":
193-
# Special case becasue triagging mechanism is different and there's only one level of triagging.
193+
# Special case because triaging mechanism is different and there's only one level of triaging.
194194
blame_str += str(blame_phase_num-1)
195195
else:
196196
blame_str += str(blame_phase_num)
@@ -224,7 +224,7 @@ def blame(fail_dir, valid_res, fail_target, out_dir, lock, num, inplace):
224224
opt_name = opt_name.replace(" ", "_")
225225
else:
226226
if blame_phase_num == 1:
227-
# It's special case for DPC++. 1 means that triagging failed, no specific phase can be blamed.
227+
# It's special case for DPC++. 1 means that triaging failed, no specific phase can be blamed.
228228
real_opt_name = opt_name = "FailedToBlame"
229229
else:
230230
opt_name_pattern = re.compile(compilers_opt_name_cutter[fail_target.specs.name][0] + ".*" +

scripts/collect_other_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def prepare_and_start(work_dir, config_file, timeout, num_jobs, csmith_bin_path,
9797
# Check for binary of generator
9898
csmith_home = os.environ.get("CSMITH_HOME")
9999
if csmith_home is None:
100-
common.print_and_exit("Please set CSMITH_HOME envirnoment variable")
100+
common.print_and_exit("Please set CSMITH_HOME environment variable")
101101
csmith_bin = os.path.abspath(csmith_home + os.sep + csmith_bin_path + os.sep + "csmith")
102102
common.check_and_copy(csmith_bin, work_dir)
103103
os.chdir(work_dir)

scripts/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,15 @@ def run_cmd(cmd, time_out=None, num=-1, memory_limit=None):
263263
except ValueError:
264264
output = b''
265265
err_output = b''
266-
log_msg(logging.DEBUG, "Procces " + str(process.pid) + " has finally died")
266+
log_msg(logging.DEBUG, "Process " + str(process.pid) + " has finally died")
267267
is_time_expired = True
268268
ret_code = None
269269
except:
270270
log_msg(logging.ERROR, str(cmd) + " failed: unknown exception (proc num "+ str(process.pid) + ")")
271271
# Something really bad is going on, so better to send sigkill
272272
os.killpg(os.getpgid(process.pid), signal.SIGKILL)
273273
process.wait()
274-
log_msg(logging.DEBUG, "Procces " + str(process.pid) + " has finally died")
274+
log_msg(logging.DEBUG, "Process " + str(process.pid) + " has finally died")
275275
raise
276276
end_time = os.times()
277277
elapsed_time = end_time.children_user - start_time.children_user + \

scripts/gen_test_makefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, name, value):
5151
self.name = name
5252
self.value = value
5353

54-
# I can't use build-in dictionary, because variables should be ordered
54+
# I can't use built-in dictionary, because variables should be ordered
5555
Makefile_variable_list = []
5656

5757
cxx_flags = MakefileVariable("CXXFLAGS", "")

scripts/run_gen.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class Test(object):
202202
# Generate new test
203203
# stat is statistics object
204204
# seed is optional, if we want to generate some particular seed.
205-
# proc_num is optinal debug info to track in what process we are running this activity.
205+
# proc_num is optional debug info to track in what process we are running this activity.
206206
def __init__(self, stat, seed="", proc_num=-1, blame=False, creduce_makefile=None):
207207
# Run generator
208208
yarpgen_run_list = [".." + os.sep + "yarpgen",
@@ -292,7 +292,7 @@ def add_success_run(self, test_run):
292292
def add_fail_run(self, test_run):
293293
self.fail_test_runs.append(test_run)
294294

295-
# Save failed runs and verify successul runs
295+
# Save failed runs and verify successful runs
296296
def handle_results(self, lock):
297297
# Handle compfails and runfails.
298298
self.save_failed(lock)
@@ -387,7 +387,7 @@ def verify_results(self, lock):
387387
for run in results.values():
388388
bad_runs += run
389389

390-
# Run blame triagging for one of failing optsets
390+
# Run blame triaging for one of failing optsets
391391
if self.blame and good_runs:
392392
do_blame(self, self.files, good_runs[0].checksum, bad_runs[0].target)
393393

@@ -756,7 +756,7 @@ def do_creduce_runfail(self, runfail_run):
756756
test_sh +="[ $RETCODE -eq " + str(runfail_run.run_ret_code) + " ] && \\\n"
757757
# it's "temporary" (until LLVM bug 33133 is fixed).
758758
# This is needed when reduceing gcc_ubsan problem. Without this check we have good chances to reduce to the code
759-
# snipent, which contains left shift of negative value (caught by gcc ubsan, but not clang ubsan).
759+
# snippet, which contains left shift of negative value (caught by gcc ubsan, but not clang ubsan).
760760
test_sh +="! grep \"left shift of negative value\" err.log && \\\n"
761761

762762
test_sh +="make -f $TEST_PWD" + os.sep + creduce_makefile_name + " " + ubsan_run.optset + " && \\\n"
@@ -1041,7 +1041,7 @@ def do_blame(test_obj, test_files, good_result, target_to_blame):
10411041
lock = None,
10421042
num = test_obj.proc_num,
10431043
inplace = True)
1044-
# Copy resuls back
1044+
# Copy results back
10451045
os.chdir(current_dir)
10461046
if os.path.exists("blame/Blame_Makefile"):
10471047
common.check_and_copy("blame/Blame_Makefile", ".")
@@ -1052,7 +1052,7 @@ def do_blame(test_obj, test_files, good_result, target_to_blame):
10521052
# interpret results
10531053
if type(blame_phase) is str:
10541054
test_obj.blame_phase = blame_phase
1055-
test_obj.blame_result = "was successul"
1055+
test_obj.blame_result = "was successful"
10561056
else:
10571057
test_obj.blame_result = "has failed"
10581058
except Exception as e:
@@ -1721,7 +1721,7 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescri
17211721
"clang, ubsan_clang, polly and gcc (ubsan_clang is a clang with sanitizer options)."
17221722
"They can be separated by a space or comma.")
17231723
parser.add_argument("-j", dest="num_jobs", default=multiprocessing.cpu_count(), type=int,
1724-
help='Maximum number of instances to run in parallel. By defaulti, it is set to'
1724+
help='Maximum number of instances to run in parallel. By default, it is set to'
17251725
' number of processor in your system')
17261726
parser.add_argument("--config-file", dest="config_file",
17271727
default=os.path.join(common.yarpgen_scripts, gen_test_makefile.default_test_sets_file_name),
@@ -1735,10 +1735,10 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescri
17351735
parser.add_argument("--seeds", dest="seeds_option_value", default="", type=str,
17361736
help="List of generator seeds to run or a file name with the list of seeds. "\
17371737
"Seeds may be separated by whitespaces and commas."\
1738-
"The seed may start with S_ or end with /, i.e. S_12345/ is interpretted as 12345."
1738+
"The seed may start with S_ or end with /, i.e. S_12345/ is interpreted as 12345."
17391739
"File comments may start with #")
17401740
parser.add_argument("--blame", dest="blame", default=False, action="store_true",
1741-
help="Enable optimization triagging for failing tests for supported compilers")
1741+
help="Enable optimization triaging for failing tests for supported compilers")
17421742
parser.add_argument("--creduce", dest="creduce", nargs='?', const=4, type=int, default=False,
17431743
help="Enable test reduction using CReduce tool. When given a number, "
17441744
"it's used as a number of creduce processes run for a single reduction (default is 4)")

scripts/test_sets.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ polly | clang++ | clang | -fPIC -mcmodel=large -w
3838
# Otherwise it may fail with "undefined reference to `__mulodi4'" error message.
3939
# See https://bugs.llvm.org//show_bug.cgi?id=16404 for more information
4040
# Note that -fpermissive option for gcc is required to allow reduction of ubsan_gcc fails.
41-
# Otherwise result of reducion is empty program.
41+
# Otherwise result of reduction is empty program.
4242
ubsan_clang | clang++ | clang | -fPIC -mcmodel=large -fsanitize=undefined -fno-sanitize-recover=undefined -Werror=uninitialized -Werror=implicitly-unsigned-literal | -march=
4343
ubsan_gcc | g++ | gcc | -fPIC -mcmodel=large -fsanitize=undefined -fno-sanitize-recover=undefined -Werror=uninitialized -fpermissive | -march=
4444
icc | icpc | icc | -fPIC -mcmodel=large -w | -x

src/enums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ enum class ArrayDimsReuseKind { SAME, OFFSET, SCALE, COMBINE };
224224
// REPEAT means that we repeat the iterator that we've used before. It also
225225
// conflicts with the dimensions in-order setting
226226
// SWAP means that we swap new iterator with one that we've used before.
227-
// The goal here is to alternate the order so we can generate somthing like
227+
// The goal here is to alternate the order so we can generate something like
228228
// matrix multiplication
229229
enum class SubscriptKind { CONST, ITER, OFFSET, REPEAT };
230230
// We need to make sure that we create special cases of array access patterns

src/expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class ReductionExpr : public AssignmentExpr {
402402
BinaryOp bin_op;
403403
LibCallKind lib_call_kind;
404404
std::shared_ptr<Expr> result_expr;
405-
// This member indicates if we want to use a simpel AssignmentExpr as a
405+
// This member indicates if we want to use a simple AssignmentExpr as a
406406
// fallback option for reduction
407407
bool is_degenerate;
408408
};

src/gen_policy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class GenPolicy {
5353
// Hard threshold for loop depth
5454
size_t loop_depth_limit;
5555

56-
// Hard threshold for if-else dpeth
56+
// Hard threshold for if-else depth
5757
size_t if_else_depth_limit;
5858

5959
// Number of statements in a scope

0 commit comments

Comments
 (0)