You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SPDX-License-Identifier: MITcontractBitwiseSolver {
uint256constant largeConstant =0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
event LogResult(uint256result);
constructor() {
executeOperations(99);
}
function executeOperations(uint256input) public {
uint256 result = (input | largeConstant) &~largeConstant;
result =performShift(result + input);
emitLogResult(result);
}
function performShift(uint256value) internalpurereturns (uint256) {
for (uint8 i =0; i <256; i++) {
value ^= (1<< i);
if (i ==0) break; // Ensures loop runs only once
}
return value;
}
}
Environment
Steps to Reproduce
However, the program can be successfully compiled into bytecode.
The text was updated successfully, but these errors were encountered: