Skip to content

Commit

Permalink
Merge pull request #370 from ethereum/nixpkgs-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
d-xo authored Sep 5, 2023
2 parents 257a864 + c6f5ae3 commit 394f905
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/haskell-updates";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
foundry.url = "github:shazow/foundry.nix/monthly";
flake-compat = {
url = "github:edolstra/flake-compat";
Expand Down Expand Up @@ -49,7 +49,7 @@
Cabal-syntax = dontCheck (self.callCabal2nix "Cabal-syntax" "${cabal-head}/Cabal-syntax" {});
Cabal = dontCheck (self.callCabal2nix "Cabal" "${cabal-head}/Cabal" {});
unix = dontCheck (doJailbreak super.unix_2_8_1_1);
filepath = dontCheck (doJailbreak super.filepath_1_4_100_3);
filepath = dontCheck (doJailbreak super.filepath_1_4_100_4);
process = dontCheck (doJailbreak super.process_1_6_17_0);
directory = dontCheck (doJailbreak (super.directory_1_3_7_1));
tasty = dontCheck (doJailbreak super.tasty);
Expand Down
4 changes: 2 additions & 2 deletions src/EVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1258,14 +1258,14 @@ query = assign #result . Just . HandleEffect . Query
choose :: Choose s -> EVM s ()
choose = assign #result . Just . HandleEffect . Choose

branch :: Expr EWord -> (Bool -> EVM s ()) -> EVM s ()
branch :: forall s. Expr EWord -> (Bool -> EVM s ()) -> EVM s ()
branch cond continue = do
loc <- codeloc
pathconds <- use #constraints
query $ PleaseAskSMT cond pathconds (choosePath loc)
where
condSimp = Expr.simplify cond
-- choosePath :: CodeLocation -> BranchCondition -> EVM s ()
choosePath :: CodeLocation -> BranchCondition -> EVM s ()
choosePath loc (Case v) = do
assign #result Nothing
pushTo #constraints $ if v then Expr.evalProp (condSimp ./= Lit 0) else Expr.evalProp (condSimp .== Lit 0)
Expand Down

0 comments on commit 394f905

Please sign in to comment.