Commit 4c5d95ae authored by Nilanjan Daw's avatar Nilanjan Daw

Infinite loop bug fix

parent 8aec2c81
......@@ -318,11 +318,13 @@ function checkCondition(op1, op2, op, result) {
}
async function speculative_deployment(chain_id, aliases, map, offset, done, toBeDone) {
console.log(done, toBeDone);
if (constants.speculative_deployment) {
let getData = []
for (const [mod, metadata] of Object.entries(map)) {
if (metadata.type !== 'function') {
if (metadata.type === 'conditional') {
if (metadata.type === 'conditional' && !constants.JIT_deployment) {
let probability
try {
probability = conditionProbabilityExpilict[chain_id][mod].probability
......@@ -356,10 +358,15 @@ async function speculative_deployment(chain_id, aliases, map, offset, done, toBe
for (const data of values) {
dataMap[data._id] = data
}
if (!done)
console.log("line 361", done, toBeDone);
if (done === undefined) {
console.log("new map");
done = new Map()
if (!toBeDone)
}
if (toBeDone === undefined) {
toBeDone = new Set()
}
// var plannerMap = new Map(map)
do {
for (const [mod, metadata] of Object.entries(map)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment