Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvc4 errors in local test #98

Open
cblp opened this issue Nov 11, 2016 · 4 comments
Open

cvc4 errors in local test #98

cblp opened this issue Nov 11, 2016 · 4 comments
Assignees

Comments

@cblp
Copy link
Contributor

cblp commented Nov 11, 2016

Interesting, Travis reports everything is OK, but when I locally run make test or make travis-test I have following 5 errors:

  1. should be safe

    1. foo9

      CVC4 Error:
          Parse Error: /tmp/cvc4-inputs/cvc4input18130801541579068977.cvc:43.40: Unexpected token: '['.
      FAIL
          Expected: Safe
          Actual: Error: [] (generated script at /tmp/cvc4-inputs/cvc4input18130801541579068977.cvc)
      

      Haskell code:

      [ivory|
      struct foo2
      { aFoo :: Stored Uint8
      ; bFoo :: (Array 4 Uint8)
      }
      |]
      
      ...
      store (f ~> bFoo ! 0) 1
      ...

      CVC4 code:

      ...
      ASSERT mc_2var0 = (mc_1var0 WITH .bFoo[0] := 1) ;
      ......................................^
    2. foo18

      FAIL
          Expected: Safe
          Actual: Error: ["expecting an arithmetic subterm"] (generated script at /tmp/cvc4-inputs/cvc4input16717359902010794583.cvc)
      
  2. examples (shouldn't crash)

    1. t1

      CVC4 Error:
          Parse Error: /tmp/cvc4-inputs/cvc4input12678896181326247643.cvc:1055.66: Unexpected token: '.'.
      FAIL (0.02s)
          Expected: anything but Error
          Actual: Error: [] (generated script at /tmp/cvc4-inputs/cvc4input12678896181326247643.cvc)
      

      Haskell code:

      arrayMap $ \ix ->
        store ((param_info_ref ! ix) ~> param_requested) 1

      CVC4 code:

      ...
      ASSERT mc_1g_param_info = (g_param_info WITH [ix0].param_requested := 1) ;
      .................................................................^
    2. arrayExample

      FAIL
          Expected: anything but Error
          Actual: Error: ["expecting an arithmetic subterm"] (generated script at /tmp/cvc4-inputs/cvc4input1390543437216220853.cvc)
      
    3. fib_struct_loop

      FAIL (0.14s)
          Expected: anything but Error
          Actual: Error: ["expecting an arithmetic subterm"] (generated script at /tmp/cvc4-inputs/cvc4input1043388777413360099.cvc)
      

Why it can be?

$ cvc4 --version
This is CVC4 version 1.3
compiled with GCC version 4.7.2
on Dec  7 2013 19:02:28
@leepike
Copy link
Contributor

leepike commented Nov 16, 2016

There are at least two problems right now: (1) there is a known parsing bug in CVC4; that is why Travis pulls down a particular build, and (2) there are some known issues with the symbolic simulator, in general.

I think the thing to do until @eddywestbrook gets a chance to integrate the new symbolic simulator is for me to deprecate the CVC4 for checks in Travis-CI.

@leepike
Copy link
Contributor

leepike commented Nov 16, 2016

@cblp
Copy link
Contributor Author

cblp commented Nov 16, 2016

But why? CVC4 works good on Travis!

@leepike
Copy link
Contributor

leepike commented Nov 16, 2016

Oh, ok. We could keep running it on Travis, but as I mentioned, it should be replaced soon anyway.

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

No branches or pull requests

3 participants