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

[csmith-project/csmith] 97df4f: c++ compatibility:



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/csmith
  Commit: 97df4f557831d4cb19e244beeda661ca478e66a6
      https://github.com/csmith-project/csmith/commit/97df4f557831d4cb19e244beeda661ca478e66a6
  Author: Natalia Glagoleva <natgla@microsoft.com>
  Date:   2016-03-25 (Fri, 25 Mar 2016)

  Changed paths:
    M src/CGOptions.cpp
    M src/CGOptions.h
    M src/CVQualifiers.cpp
    M src/Constant.cpp
    M src/Probabilities.cpp
    M src/RandomProgramGenerator.cpp
    M src/Type.cpp
    M src/Type.h

  Log Message:
  -----------
  c++ compatibility:
To generate C++ compatible code add --lang-cpp to cmith command line.
Previously you'd also need to add --no-consts --no-volatiles.
Consts and volatiles are supported now, with limitation:
"--match-exact-qualifiers --no-vol-struct-union-fields --no-const-struct-union-fields" are auto-added.

New switch:
--const-struct-union-fields|--no-const-struct-union-fields

Note:
Mixing signed and unsigned int pointers isn't supported anymore.
Explicit casts were emitted for these cases, but casts need to take CVqualifiers into account.


  Commit: c8e6b532dc0924cbdcd5458b4d9b04c8d13084f9
      https://github.com/csmith-project/csmith/commit/c8e6b532dc0924cbdcd5458b4d9b04c8d13084f9
  Author: Natalia Glagoleva <natgla@microsoft.com>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M src/CVQualifiers.cpp
    M src/Type.cpp

  Log Message:
  -----------
  Fixes related to review comments

- removed range loops
- removed DEPTH_GUARD_BY_DEPTH_RETURN and ERROR_GUARD from CVQualifiers::random_qualifiers


  Commit: 2a4602be03a47270ce155c07610701a92a97a30e
      https://github.com/csmith-project/csmith/commit/2a4602be03a47270ce155c07610701a92a97a30e
  Author: Natalia Glagoleva <natgla@microsoft.com>
  Date:   2016-04-07 (Thu, 07 Apr 2016)

  Changed paths:
    M src/CGOptions.h
    M src/VariableSelector.cpp

  Log Message:
  -----------
  Fix for csmith hanging with these arguments:
csmith --lang-cpp --seed 3168423516

csmith has a limit on pointer levels; default was 2.
This limit was respected in one place and not respected in another.
Enforce the limit. Up the default to 5 as a good compromise between 2 and infinity.


  Commit: 0ecbf4d916ba99d4395d86c2c12993df2b64719e
      https://github.com/csmith-project/csmith/commit/0ecbf4d916ba99d4395d86c2c12993df2b64719e
  Author: Natalia Glagoleva <natgla@microsoft.com>
  Date:   2016-04-07 (Thu, 07 Apr 2016)

  Changed paths:
    M src/CVQualifiers.cpp
    M src/Type.cpp

  Log Message:
  -----------
  Cleanup from code review


  Commit: 891df8c00631515b6174acbd50659d150f63faa8
      https://github.com/csmith-project/csmith/commit/891df8c00631515b6174acbd50659d150f63faa8
  Author: Natalia Glagoleva <natgla@microsoft.com>
  Date:   2016-04-07 (Thu, 07 Apr 2016)

  Changed paths:
    M src/CGOptions.cpp
    M src/CGOptions.h
    M src/Constant.cpp
    M src/RandomProgramGenerator.cpp

  Log Message:
  -----------
  Adding --cpp11 option.
With the option csmith will generate nullptr for null pointers; without this option it'll generate NULL.


  Commit: d100bd1a1b54fd97fbbe3009e249b4d07873ca0e
      https://github.com/csmith-project/csmith/commit/d100bd1a1b54fd97fbbe3009e249b4d07873ca0e
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2016-04-09 (Sat, 09 Apr 2016)

  Changed paths:
    M src/CGOptions.cpp
    M src/CGOptions.h
    M src/CVQualifiers.cpp
    M src/Constant.cpp
    M src/Probabilities.cpp
    M src/RandomProgramGenerator.cpp
    M src/Type.cpp
    M src/Type.h
    M src/VariableSelector.cpp

  Log Message:
  -----------
  Merge pull request #33 from natgla/working

c++ compatibility:


Compare: https://github.com/csmith-project/csmith/compare/075c863bb004...d100bd1a1b54