Skip to content

Commit 3e32c6f

Browse files
noahgiftclaude
andcommitted
Release v1.0.1 - Bug fixes and improvements
## Version Bump - Workspace version: 1.0.0 → 1.0.1 ## CHANGELOG.md - Added comprehensive v1.0.1 release notes - Documented DECY-072 completion - Documented pointer arithmetic detection improvements - Listed all test results and files modified ## Release Type: Patch This is a patch release containing critical bug fixes: - Complete DECY-072 array parameter transformation - Enhanced pointer arithmetic detection - Type casting improvements for slice operations - Mutability detection fixes ## Quality Verification - ✅ Build: SUCCESS - ✅ Tests: 237+ passing - ✅ Clippy: 0 warnings - ✅ All integration tests passing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 3361b08 commit 3e32c6f

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
## [1.0.1] - 2025-11-07 🔧
2+
3+
### **Bug Fixes & Critical Improvements**
4+
5+
This patch release fixes critical bugs discovered in the array parameter transformation feature and enhances pointer arithmetic detection for safer code generation.
6+
7+
---
8+
9+
### 🐛 **Bug Fixes**
10+
11+
#### DECY-072: Array Parameter Transformation - Complete Implementation
12+
- **Fixed**: Incomplete implementation causing clippy warning and test failures
13+
- **Implemented**: Length parameter references transformed to `.len()` calls
14+
- `size``arr.len() as i32` (automatic type casting)
15+
- **Added**: Type casts for slice operations
16+
- Array indexing: `arr[i]``arr[i as usize]`
17+
- Array assignment: `arr[i] = x``arr[i as usize] = x`
18+
- **Fixed**: Mutability detection for slice parameters (`&[T]` vs `&mut [T]`)
19+
20+
#### Enhanced Pointer Arithmetic Detection
21+
- **Fixed**: False positives in array-to-slice transformation
22+
- **Disqualifying factors** now properly detect:
23+
- Pointer arithmetic on parameters (`arr++`, `arr + n`)
24+
- Parameters assigned to pointer variables (`int* ptr = arr`)
25+
- **Added**: Recursive expression checking for nested pointer usage
26+
- **Result**: Functions like `traverse_array` correctly preserve raw pointers
27+
28+
### **Test Results**
29+
- All integration tests: PASS ✅
30+
- `test_nested_loops_with_break_continue`: PASS ✅
31+
- `test_transpile_increment_decrement`: PASS ✅
32+
- `test_transpile_real_world_patterns`: PASS ✅
33+
- Clippy warnings: 0
34+
- Build: SUCCESS
35+
36+
### 📦 **Files Modified**
37+
- `crates/decy-codegen/src/lib.rs` - Type casting for slice operations
38+
- `crates/decy-ownership/src/array_slice.rs` - Complete transformation implementation
39+
- `crates/decy-ownership/src/dataflow.rs` - Enhanced detection, mutability analysis
40+
- `crates/decy-analyzer/src/lock_analysis.rs` - Concurrency improvements
41+
- `crates/decy-codegen/src/concurrency_transform.rs` - Threading primitives
42+
43+
---
44+
145
## [1.0.0] - 2025-01-01 🎉
246

347
### **MAJOR MILESTONE: Core Safety Validation Mission Complete**

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ members = [
1717
]
1818

1919
[workspace.package]
20-
version = "1.0.0"
20+
version = "1.0.1"
2121
edition = "2021"
2222
authors = ["Decy Contributors"]
2323
license = "MIT OR Apache-2.0"

0 commit comments

Comments
 (0)