[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/csmith] f86469: Fix invalid size assertion



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/csmith
  Commit: f86469ac26c0d276616864e0d46d6bd6cae6caf8
      https://github.com/csmith-project/csmith/commit/f86469ac26c0d276616864e0d46d6bd6cae6caf8
  Author: Gergö Barany <gergo@complang.tuwien.ac.at>
  Date:   2017-01-13 (Fri, 13 Jan 2017)

  Changed paths:
    M src/SafeOpFlags.cpp

  Log Message:
  -----------
  Fix invalid size assertion

When running with `--no-safe-math --float`, Csmith would often fail with:
```
csmith: SafeOpFlags.cpp:264: void SafeOpFlags::OutputSize(std::ostream&) const: Assertion !"invalid size!" failed.
```

This patch adds the forgotten case in that function. Fixes issue #42.


  Commit: 250da040231f0e835e4413d987ea8b89969d1667
      https://github.com/csmith-project/csmith/commit/250da040231f0e835e4413d987ea8b89969d1667
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2017-01-13 (Fri, 13 Jan 2017)

  Changed paths:
    M src/SafeOpFlags.cpp

  Log Message:
  -----------
  Merge pull request #44 from gergo-/fix-float-no-safe-math-bug

Fix invalid size assertion


Compare: https://github.com/csmith-project/csmith/compare/ee30f582f362...250da040231f