Skip to content

Commit

Permalink
Added some type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Sep 16, 2023
1 parent 509c955 commit 0609603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/analysis/typepal/Solver.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Solver newSolver(map[str,Tree] namedTrees, TModel tm){
missing = dependencies - domain(calcMap) - domain(facts) - uses - defs;
if(!isEmpty(missing)){
//printSolverState();
for(m <- missing) messages += warning("Missing calculator", m);
for(loc m <- missing) messages += warning("Missing calculator", m);
//was: throw TypePalUsage("Missing calculators", toList(missing));
}
}
Expand Down Expand Up @@ -326,11 +326,11 @@ Solver newSolver(map[str,Tree] namedTrees, TModel tm){
if(trigger in activeTriggers) return;
addActiveTrigger(trigger);

for(calc <- (triggersCalculator[trigger] ? {}) && calc in calculators){
for(Calculator calc <- (triggersCalculator[trigger] ? {}) && calc in calculators){
evalOrScheduleCalc(calc);
}

for(req <- triggersRequirement[trigger] ? {} && req in requirements){
for(Requirement req <- triggersRequirement[trigger] ? {} && req in requirements){
evalOrScheduleReq(req);
}

Expand Down Expand Up @@ -430,7 +430,7 @@ Solver newSolver(map[str,Tree] namedTrees, TModel tm){
for(dep <- dependsOn) { if(facts[dep]?) nAvailable += 1; }
enabled = nAvailable == size(dependsOn);
if(enabled) calculatorJobs += calc;
//if(logSolverSteps){ print(enabled ? "*" : "+"); print(calc, "", facts, full=false); }
if(logSolverSteps){ print(enabled ? "*" : "+"); print(calc, "", facts, full=false); }
}
}

Expand Down

0 comments on commit 0609603

Please sign in to comment.