Skip to content

genprog assertion failure when --edit-script and --minimization are both supplied #28

Description

@pdreiter

when the minimal set is found by genprog, get an assertion

Entering delta, pass number 7...
genprog aborting: File "minimization.ml", line 128, characters 9-15: Assertion failed
Rep: saving test cache

Variant Test Case Queries: 39
"Test Suite Evaluations": 9.75

Compile Failures: 0
Wall-Clock Seconds Elapsed: 1.78932
  Activity Name                     Count Seconds = Percent of Total Time
  rebuild files                       250   0.663 = 99.9983%
  TOTAL                                     0.663 = 36.9023% (avg CPU usage)
Fatal error: exception File "minimization.ml", line 128, characters 9-15: Assertion failed

I did some debugging and it looks like this is because min_rep#construct_rep from delta_debugging @ src/minimization.ml line 280 doesn't take into account that the minimized input is an edit list and always treats the input as a diff.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions