-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable
- Loading branch information
Showing
172 changed files
with
5,110 additions
and
22,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Copyright (c) Microsoft Corporation 2015 | ||
|
||
import os | ||
import shutil | ||
import re | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#include<vector> | ||
#include"z3++.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#include<stdio.h> | ||
#include<stdlib.h> | ||
#include<stdarg.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <iostream> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
/* | ||
Simple MAXSAT solver on top of the Z3 API. | ||
*/ | ||
|
6 changes: 6 additions & 0 deletions
6
examples/msf/SolverFoundation.Plugin.Z3.Tests/ServiceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
using Microsoft.SolverFoundation.Services; | ||
using System; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
using Microsoft.SolverFoundation.Services; | ||
using System; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
using Microsoft.SolverFoundation.Services; | ||
using System; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
using Microsoft.SolverFoundation.Services; | ||
using System; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
using Microsoft.SolverFoundation.Services; | ||
using System; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Copyright (c) Microsoft Corporation 2015 | ||
|
||
from z3 import * | ||
|
||
x = Real('x') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#include <string> | ||
#include <cstring> | ||
#include <list> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#ifndef TPTP5_H_ | ||
#define TPTP5_H_ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#line 2 "tptp5.lex.cpp" | ||
|
||
#line 4 "tptp5.lex.cpp" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright (c) 2015 Microsoft Corporation | ||
|
||
import os | ||
import re | ||
|
||
cr = re.compile("Copyright") | ||
aut = re.compile("Automatically generated") | ||
|
||
cr_notice = """ | ||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
""" | ||
|
||
def has_cr(file): | ||
ins = open(file) | ||
lines = 0 | ||
line = ins.readline() | ||
while line and lines < 20: | ||
m = cr.search(line) | ||
if m: | ||
ins.close() | ||
return True | ||
m = aut.search(line) | ||
if m: | ||
ins.close() | ||
return True | ||
line = ins.readline() | ||
ins.close() | ||
return False | ||
|
||
def add_cr(file): | ||
tmp = "%s.tmp" % file | ||
ins = open(file) | ||
ous = open(tmp,'w') | ||
ous.write(cr_notice) | ||
line = ins.readline() | ||
while line: | ||
ous.write(line) | ||
line = ins.readline() | ||
ins.close() | ||
ous.close() | ||
os.system("move %s %s" % (tmp, file)) | ||
|
||
def add_missing_cr(dir): | ||
for root, dirs, files in os.walk(dir): | ||
for f in files: | ||
if f.endswith('.cpp') or f.endswith('.h') or f.endswith('.c') or f.endswith('.cs'): | ||
path = "%s\\%s" % (root, f) | ||
if not has_cr(path): | ||
print "Missing CR for %s" % path | ||
add_cr(path) | ||
|
||
add_missing_cr('src') | ||
add_missing_cr('examples') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
|
||
/*++ | ||
Copyright (c) 2015 Microsoft Corporation | ||
--*/ | ||
|
||
#ifdef _WINDOWS | ||
|
||
#include<windows.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.