argotorg / argotorg/solidity

SMTChecker is unable to accurately determine the output of bytes.concat

Open
#15,073 1 comment 0 reactions 1 assignee Claimed by @pgebal View on GitHub
needs investigation nice to have smt
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

## Environment

- Compiler version: 0.8.25
- Target EVM version (as per compiler settings): No restrictions
- Framework/IDE (e.g. Truffle or Remix): Command-line
- EVM execution environment / backend / blockchain client: None
- Operating system: Linux

## Steps to Reproduce
```solidity
contract test {
function f() public {
bytes memory a="1";
bytes memory b="2";

bytes memory c=bytes.concat(a,b);
assert(c.length==2);
}
}
```

```
solc test.sol --model-checker-engine chc --model-checker-show-unproved --model-checker-timeout 0
```
![image](https://github.com/ethereum/solidity/assets/147013944/c733654e-4040-43d1-af4f-479e7dcc7088)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.