Skip to content

Commit d976b9f

Browse files
committed
removing the json file for a failing test per #337 and #335
1 parent 6f1652d commit d976b9f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

resources/tests/GanacheTests/PrimOpsNeg.json

-8
This file was deleted.

src/main/scala/edu/cmu/cs/obsidian/codegen/CodeGenYul.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ object CodeGenYul extends CodeGenerator {
394394
case e: UnaryExpression =>
395395
e match {
396396
case LogicalNegation(e) => translateStatement(IfThenElse(e, Seq(FalseLiteral()), Seq(TrueLiteral())), Some(retvar.name), contractName, checkedTable)
397-
case Negate(e) => translateExpr(retvar, Subtract(NumLiteral(0), e), contractName, checkedTable)
397+
case Negate(e) =>
398+
translateExpr(retvar, Subtract(NumLiteral(0), e), contractName, checkedTable)
398399
case Dereference(_, _) =>
399400
assert(assertion = false, "TODO: translation of " + e.toString + " is not implemented")
400401
Seq()

0 commit comments

Comments
 (0)