Skip to content

Implement bitwise operations - #234

Draft
JulianGCalderon wants to merge 4 commits into
mainfrom
binary-operations
Draft

Implement bitwise operations#234
JulianGCalderon wants to merge 4 commits into
mainfrom
binary-operations

Conversation

@JulianGCalderon

@JulianGCalderon JulianGCalderon commented Apr 28, 2025

Copy link
Copy Markdown
Contributor

This PR implements some missing bitwise operations:

  • And
  • Or
  • Xor
  • Not
  • Shift Right
  • Shift Left

@github-actions

github-actions Bot commented Apr 28, 2025

Copy link
Copy Markdown

Benchmarking (macOS) factorial

Compiling factorial (factorial.con)
Finished release in 607.395ms
Running 5000000 iterations
Using input value: 20
Concrete Result = 2432902008176640000 Time taken : 29.87 ms
Rust Result = 2432902008176640000 Time taken : 23.71 ms

Benchmarking (macOS) fib

Compiling fib (fib.con)
Finished release in 109.977625ms
Running 5000 iterations
Using input value: 20
Concrete Result = 6765 Time taken : 92.88 ms
Rust Result = 6765 Time taken : 101.96 ms

@github-actions

github-actions Bot commented Apr 28, 2025

Copy link
Copy Markdown

Benchmarking (Linux) factorial

Compiling factorial (factorial.con)
Finished release in 33.052101ms
Running 5000000 iterations
Using input value: 20
Concrete Result = 2432902008176640000 Time taken : 96.99 ms
Rust Result = 2432902008176640000 Time taken : 60.38 ms

Benchmarking (Linux) fib

Compiling fib (fib.con)
Finished release in 26.68774ms
Running 5000 iterations
Using input value: 20
Concrete Result = 6765 Time taken : 136.94 ms
Rust Result = 6765 Time taken : 98.37 ms

@codecov-commenter

codecov-commenter commented Apr 28, 2025

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.55%. Comparing base (4802a28) to head (00ec991).
⚠️ Report is 1733 commits behind head on main.

Files with missing lines Patch % Lines
src/codegen/compiler.rs 93.75% 1 Missing ⚠️
src/ir/lowering/expressions.rs 80.00% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #234      +/-   ##
==========================================
+ Coverage   56.29%   57.55%   +1.26%     
==========================================
  Files          25       25              
  Lines        5516     5529      +13     
==========================================
+ Hits         3105     3182      +77     
+ Misses       2411     2347      -64     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JulianGCalderon
JulianGCalderon marked this pull request as ready for review April 28, 2025 14:26
@JulianGCalderon
JulianGCalderon marked this pull request as draft April 28, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants