lambdaclass / cairo-vm_in_go

cairo-vm_in_go is a Go implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
Apache License 2.0
57 stars 13 forks source link

Add `SafeDivBig` function #292

Closed fmoletta closed 1 year ago

fmoletta commented 1 year ago

Same behaviour as https://github.com/lambdaclass/cairo-vm/blob/8d711e136d4ad590249975f0b750502c44b8177b/vm/src/math_utils/mod.rs#L60

codecov-commenter commented 1 year ago

Codecov Report

Merging #292 (8dbdbcb) into main (a72704d) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #292      +/-   ##
==========================================
+ Coverage   57.60%   57.66%   +0.06%     
==========================================
  Files          45       45              
  Lines        5611     5620       +9     
==========================================
+ Hits         3232     3241       +9     
  Misses       2078     2078              
  Partials      301      301              
Files Coverage Δ
pkg/utils/math_utils.go 21.42% <100.00%> (+21.42%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more