Giter Site home page Giter Site logo

mbodin / coqr Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 0.0 3.01 MB

A Coq formalisation of the R programming language

License: GNU General Public License v2.0

Emacs Lisp 0.01% Makefile 0.14% Coq 30.59% OCaml 2.83% Perl 0.24% R 66.16% Shell 0.03%
coq-formalization formalization r rstats

coqr's People

Contributors

mbodin avatar tdiazt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coqr's Issues

Bug with integer overflow with arithmetic operation

  • R program that triggers the difference
> x <- 2147483647L ; x + 1L
> x <- 2147483647L ; x * x

  • runR.native Output
[1] 2147483648
[1] 4611686014132420609
  • R Output
[1] NA
Warning message:
In x + 1L : NAs produced by integer overflow
  • Additional information

Haven't checked anything yet

Bug in arithmetic operation with NA as argument

  • R program that triggers the difference
1 + NA

(Any sum using NA)
  • runR.native Output
[1] NaN
  • R Output
[1] NA 
  • Additional information

I am wondering if it has something to do with using Double.add.
I noticed in bisect that this execution goes all the way from do_arith to R_binary. The checks at the source code (first, snd) return false (which seems ok). Then it jumps straight to calling R_binary.

In R_binary it skips the checks for array (makes sense) and in this check it enters. It ends up calling real_binary (source) and ends ups performing this operation (coqR code)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.