Project

General

Profile

Actions

Feature #6570

closed

Iterate over dictionaries deterministically in EMG

Added by Ilja Zakharov over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Environment models
Target version:
-
Start date:
01/28/2016
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

All loops over dictionaries should be rewritten to guarantee deterministical generation of an environment model code, since default Python "for" loops do that differently from time to time.


Related issues 1 (0 open1 closed)

Related to Klever - Feature #6814: Exclude auxiliary functions of environment models from error traces comparisonClosedVladimir Gratinskiy02/04/201611/28/2016

Actions
Actions #1

Updated by Ilja Zakharov over 8 years ago

  • Category set to Environment models
Actions #2

Updated by Evgeny Novikov over 8 years ago

Consider using standard collections.OrderedDict for this.

Actions #3

Updated by Evgeny Novikov about 8 years ago

BTW this nondeterminism leads to we can't use our simple error trace comparison algorithms since function names vary from time to time.

Actions #4

Updated by Evgeny Novikov about 8 years ago

  • Priority changed from High to Normal

#6814 suggests the much more universal approach than deterministic names of functions from environment models.

Actions #5

Updated by Vadim Mutilin about 8 years ago

  • Priority changed from Normal to High

nondetermism in generated EMG models leads to nondeterministics of results produced by verification tools, thus this bug is still important to fix

Actions #6

Updated by Evgeny Novikov about 8 years ago

  • Priority changed from High to Urgent

For at least 3 modules from the validation set CPAchecker can consume several times more resources and even fails with time outs instead of finding target bugs likely due to non-determinism in generated environment models. Without deterministic behaviour even at that level we can not perform reliable experiments.

Actions #7

Updated by Ilja Zakharov about 8 years ago

  • Status changed from New to Resolved
  • Priority changed from Urgent to High

The problem is solved and corresponding code merged to master.

Aspect files generated by EMG and corresponding cil files should be equivalent now. If you encounter any problems with non-determinism caused by EMG it is preferable to open a new issue with details about your task provided.

Actions #8

Updated by Evgeny Novikov about 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF