Skip to content

Commit

Permalink
Add the --no-safe-math flag as suggested by Tomyo. "Lightly tested."
Browse files Browse the repository at this point in the history
  • Loading branch information
regehr committed Aug 22, 2011
1 parent 91f65aa commit 7f45ae4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/RandomProgramGenerator.cpp
Expand Up @@ -1135,6 +1135,11 @@ main(int argc, char **argv)
continue;
}

if (strcmp (argv[i], "--no-safe-math") == 0){
CGOptions::avoid_signed_overflow(false);
continue;
}

if (strcmp (argv[i], "--no-embedded-assigns") == 0) {
CGOptions::use_embedded_assigns(false);
continue;
Expand Down

0 comments on commit 7f45ae4

Please sign in to comment.