-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.py
34 lines (23 loc) · 847 Bytes
/
examples.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
"""
Created on Wed May 16 09:46:49 2018
@author: moth
"""
import abstractstate as abst
import abstractexecution as abex
def example_get_bound(expression_, condition_):
recorder = 1
abstract_store = list(range(1, 5000))
state = abst.AbstractState(recorder, abstract_store)
flag = True
#i = 1
while(len(state._abstract_store)):
if(flag):
flag = False
state = abex.abstract_execution_for_simple_loop(state, expression_, condition_, True)
else:
state = abex.abstract_execution_for_simple_loop(state, expression_, condition_, False)
#print(i)
#i += 1
max_bound = state._recorder
return max_bound