Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions constraint_generation/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ fn execute_statement(
}

if !needs_double_arrow.is_empty() && flags.inspect{
// in case we can subsitute the complete expression to ==>
// in case we can substitute the complete expression to ==>
if needs_double_arrow.len() == AExpressionSlice::get_number_of_cells(&constrained.right){
let err : Result<(),ExecutionWarning> =
Result::Err(ExecutionWarning::CanBeQuadraticConstraintSingle());
Expand Down Expand Up @@ -1341,7 +1341,7 @@ fn execute_bus_declaration(
}

/*
In case the assigment could be a constraint generator the returned value is the constraint
In case the assignment could be a constraint generator the returned value is the constraint
that will be created
*/
enum ExecutedStructure<'a>{
Expand Down Expand Up @@ -1967,7 +1967,7 @@ fn perform_assign(
}

if FoldedValue::valid_bus_node_pointer(&r_folded){
// in this case we are performing an assigment of the type in the node_pointer
// in this case we are performing an assignment of the type in the node_pointer
// to the bus in the left

let bus_pointer = r_folded.bus_node_pointer.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion type_analysis/src/analyzers/unknown_known_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ fn add_report(
let mut report = Report::error("Typing error found".to_string(), error_code);
let location = generate_file_location(meta.start, meta.end);
let message = match error_code {
UnknownTemplateAssignment => "Assigments to signals within an unknown access to an array of components are not allowed".to_string(),
UnknownTemplateAssignment => "Assignments to signals within an unknown access to an array of components are not allowed".to_string(),
UnknownBus => "Parameters of a bus must be known during the constraint generation phase".to_string(),
UnknownDimension => "The length of every array must be known during the constraint generation phase".to_string(),
UnknownTemplate => "Every component instantiation must be resolved during the constraint generation phase. This component declaration uses a value that can be unknown during the constraint generation phase.".to_string(),
Expand Down