aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/bool_simple_3.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/smtCheckerTests/bool_simple_3.sol')
-rw-r--r--test/libsolidity/smtCheckerTests/bool_simple_3.sol7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/bool_simple_3.sol b/test/libsolidity/smtCheckerTests/bool_simple_3.sol
new file mode 100644
index 00000000..1d2ab49f
--- /dev/null
+++ b/test/libsolidity/smtCheckerTests/bool_simple_3.sol
@@ -0,0 +1,7 @@
+pragma experimental SMTChecker;
+contract C {
+ function f(bool x, bool y) public pure {
+ bool z = x || y;
+ assert(!(x && y) || z);
+ }
+}